//
//  TravelNoteModel.m
//  TakeHer
//
//  Created by 胖疙瘩的小疙瘩 on 15/6/13.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "TravelNoteModel.h"

@implementation TravelNoteModel

- (void)dealloc
{
    [_name release];
    [_user release];
    [_place release];
    [_cover_image release];
    
    [super dealloc];
}

//防止重名
- (void)setValue:(id)value forKey:(NSString *)key
{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"id"]) {
        self.Id = [NSString stringWithFormat:@"%@", value];
    }
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}


//计算时间(天数)(方法名,变量名)
+ (NSString *)day:(NSInteger)day
{
    day = day / 3600 / 24;
    NSString *days = [NSString stringWithFormat:@"共%ld天", day];
    return days;
}









@end
